export const findObject = (arr, column) => {
	let resArr;
	arr.map((item, index) => {
		if (item.id == column) {
			resArr = item;
			return;
		}
	})
	return resArr;
}

export const findIndex = (arr, column) => {
	let indexl;
	arr.map((item, index) => {
		if (item.id === column) {
			indexl = index;
		}
	})
	return indexl;
}

// 通过
export const findLabel = (arr, colum, value, name) => {
	let label;
	arr.map((item) => {
		if (item[colum] === value) {
			label = item[name]
		}
	})
	return label
}
